package com.atguigu.springboot.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class ScheduledService {

    /**
     * second, minute, hour, day of month, month, and day of week.
     * For example, {@code "0 * * * * MON-FRI"}
     */
    @Scheduled(cron = "0 * * * * MON-FRI")
    public void hello(){
        System.out.println("hello......");
    }
}
